package service.impl;

import dao.MessageDao;
import dao.impl.MessageDaoImpl;
import model.Message;
import service.MessageService;

import java.util.List;

/**
 * @author gzp
 * @create 2023-01-05 19:05
 */
public class MessageServiceImpl implements MessageService {

    MessageDao messageDao = new MessageDaoImpl();

    @Override
    public boolean insert(Message message) {
        return messageDao.insert(message) == 1;
    }

    @Override
    public List<Message> selectBySid(int sid) {
        return messageDao.selectBySid(sid);
    }
}
